import Vue from 'vue'
import Vuex from 'vuex'

import getters from './getters'
import app from './modules/app'
import user from './modules/user'
import menu from './modules/menu'
import scene from './modules/scene'
import goods from './modules/goods'
import minimap from './modules/minimap'
import overview from './modules/overview'
import graphic from './modules/graphic'
import krpano from './modules/krpano'
import wechat from './modules/wechat'
import aerialPhotography from './modules/aerialPhotography'
import handdraw from './modules/handdraw'

Vue.use(Vuex)

const debug = process.env.NODE_ENV !== 'production'

const store =  new Vuex.Store({
  getters,
  modules: {
    app,
    user,
    menu,
    scene,
    goods,
    minimap,
    overview,
    graphic,
    krpano,
    wechat,
    aerialPhotography,
    handdraw
  },
  strict: debug,
  // plugins: debug ? [createLogger()] : []
})

export default store
